/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package view.administration.saisienotes;

import dao.DAOCour;
import dao.DAOExamen;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *
 * @author Paul
 */
public class CreationExamen extends HttpServlet {

    @Override
    public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    }

    @Override
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        String examen = request.getParameter("nomexamen");
        DAOExamen daoEx = new DAOExamen();
        daoEx.create(examen);
        request.setAttribute("message", "L'examen a bien été crée et associé au cours " + "");
    }
}
